<?php /* @var $icon Files */ ?>

<?php if ($sf_flash->has('notice')): ?>
    <div class="save-ok">
        <h2><?php echo __($sf_flash->get('notice')) ?></h2>
    </div>
<?php endif; ?>

<?php if(!empty($icon)):?>
    <?php echo image_tag(
                    '/images/' . Files::getDirPath('tiny', false) . $icon->getUname()
                    , array(
                        'border' => '0'
                    )
                )?>
    <?php echo link_to(
                image_tag(
                    'cross.png'
                    , array(
                        'border' => '0'
                        , 'alt' => __('remove')
                        , 'title' => __('remove')
                    )
                )
                , 'tree/icon?uname=' . $icon->getNameforurl()
            )?>
<?php endif; /* END IF ( has icon ) */ ?>

    <?php echo form_tag('tree/icon?id=' . $id, 'multipart=true') ?>
    <?php echo input_file_tag('file') ?>
    <?php echo submit_tag('Send') ?>
</form>
